﻿<Page x:Class="Stankovita.Program.Pages.UsersLogs"
      xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
      xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
      xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" 
      xmlns:d="http://schemas.microsoft.com/expression/blend/2008" 
      xmlns:local="clr-namespace:Stankovita.Program.Pages"
      mc:Ignorable="d" 
      d:DesignHeight="650" d:DesignWidth="850"
      Title="Logs">

    <Grid Background="WhiteSmoke">

        <Grid.RowDefinitions>
            <RowDefinition/>
            <RowDefinition Height="50"/>
        </Grid.RowDefinitions>
        
        <!--Таблица-->
        <DataGrid Name="dGridLogs"
                  Margin="10"
                  AutoGenerateColumns="False"
                  IsReadOnly="True"
                  BorderBrush="#FF4CB034"
                  BorderThickness="3">
            <DataGrid.Columns>
                <DataGridTextColumn Header="Пользователь"
                                        Width="Auto"
                                        Binding="{Binding loginUser}"/>
                <DataGridTextColumn Header="Время входа"
                                        Width="Auto"
                                        Binding="{Binding timeLogin}"/>
                <DataGridTextColumn Header="Время выхода"
                                        Width="Auto"
                                        Binding="{Binding timeLogout}"/>
                <DataGridTextColumn Header="Время работы"
                                        Width="Auto"
                                        Binding="{Binding timeWork}"/>
            </DataGrid.Columns>

            <DataGrid.Resources>
                <Style TargetType="Border">
                    <Setter Property="CornerRadius" Value="5"/>
                </Style>
            </DataGrid.Resources>
        </DataGrid>

        <!--Кнопка выхода-->
        <Button Name="BackBtn"
                Style="{DynamicResource ButtonStyle}"
                Content="Вернуться на страницу"
                FontSize="18"
                Grid.Row="1"
                Margin="300 3 300 3"
                Click="BackBtn_Click"/>

    </Grid>
</Page>
